package io.github.uicdb.badskill.clent;

import lombok.Getter;
import lombok.Setter;
import net.minecraft.resources.ResourceLocation;
import org.checkerframework.checker.nullness.qual.Nullable;


public class HsTab{
    @Getter
    private final int page,width,height;
    @Setter@Getter
    private int x,y;
    @Getter
    private final onClickListener onClick;
    @Getter@Nullable
    private final ResourceLocation icon;

    public HsTab(int page, int width, int height, onClickListener onClick, @Nullable ResourceLocation icon) {
        this.page=page;
        this.width = width;
        this.height = height;
        this.onClick = onClick;
        this.icon = icon;
    }
    public interface onClickListener{
        void onClick(int page);
    }
}
